<html>
<head><meta charset="utf-8"><title>Duration::from_minutes · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Duration.3A.3Afrom_minutes.html">Duration::from_minutes</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="239684591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Duration%3A%3Afrom_minutes/near/239684591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ast-ral <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Duration.3A.3Afrom_minutes.html#239684591">(May 21 2021 at 01:37)</a>:</h4>
<p>Is there a reason why there's no <code>Duration::from_minutes</code>, <code>Duration::from_hours</code>, etc? Someone mentioned leap seconds as a possible explanation. In that case, would names such as <code>Duration::from_standard_minute</code> be an acceptable addition for performing the naive conversion that ignores leap seconds?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>